﻿using Basic.FormModel.DB;
using WeDonekRpc.SqlSugar;

namespace Basic.FormDAL.Repository
{
    internal class FormDataSourceDAL : BasicDAL<DBFormDataSource, long>, IFormDataSourceDAL
    {
        public FormDataSourceDAL ( IRepository<DBFormDataSource> basicDAL ) : base(basicDAL, "form.data.source")
        {
        }

        public string[] GetKeys ( long[] ids )
        {
            return this._BasicDAL.Gets(a => ids.Contains(a.Id) && a.IsEnable, a => a.SourceKey);
        }
    }
}
